package com.ruoyi.contract.mapper;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.contract.domain.ConRule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author 姚煜峰
* @description 针对表【CON_RULE】的数据库操作Mapper
* @createDate 2023-06-28 15:33:15
* @Entity com.ruoyi.contract.domain.ConRule
*/
public interface ConRuleMapper extends BaseMapper<ConRule> {

    //根据projectId查询规则
    @DataSource(DataSourceType.SLAVE)
    List<ConRule> selectConRuleByProjectId(Long projectId);
    
    Long getDiscRuleByConId(Long conId) ;

}




